import requests
from requests.auth import HTTPBasicAuth

r = requests.get('http://127.0.0.1/metinfo/admin', auth=HTTPBasicAuth('admin', 'password'))
# r = requests.get('http://127.0.0.1/metinfo/admin')
print(r.status_code)
